import request from '@/utils/request'
//列表
export function queryList(params) {
  return request({
    url: '/system/discernRule/list',
    method: 'get',
    params: params
  })
}
//启停
export function updateStatus(params) {
  return request({
    url: '/system/discernRule/updateStatus',
    method: 'get',
    params: params
  })
}
// 查询敏感字段表列表
export function queryListForType(params) {
  return request({
    url: '/system/b/datasensitivewords/queryListForType',
    method: 'get',
    params
  })
}
//新增
export function queryAdd(data) {
  return request({
    url: '/system/discernRule/add',
    method: 'post',
    data
  })
}
//修改
export function queryUpdate(data) {
  return request({
    url: '/system/discernRule/edit',
    method: 'post',
    data
  })
}
//删除
export function queryDelete(data) {
  return request({
    url: '/system/discernRule/remove',
    method: 'post',
    data
  })
}
